import 'package:oramemo/generated/json/base/json_convert_content.dart';
import 'package:oramemo/entity/requst/folder_put_entity.dart';

FolderPutEntity $FolderPutEntityFromJson(Map<String, dynamic> json) {
  final FolderPutEntity folderPutEntity = FolderPutEntity();
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    folderPutEntity.id = id;
  }
  final String? folderName = jsonConvert.convert<String>(json['folderName']);
  if (folderName != null) {
    folderPutEntity.folderName = folderName;
  }
  return folderPutEntity;
}

Map<String, dynamic> $FolderPutEntityToJson(FolderPutEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = entity.id;
  data['folderName'] = entity.folderName;
  return data;
}

extension FolderPutEntityExtension on FolderPutEntity {
  FolderPutEntity copyWith({
    String? id,
    String? folderName,
  }) {
    return FolderPutEntity()
      ..id = id ?? this.id
      ..folderName = folderName ?? this.folderName;
  }
}